<template>
    <div class="reportFormPage" v-if="show">
        <div id="domid" class="report-dom horizontal">
            <!-- 头部标题区 -->
            <el-row>
                <el-col :span="5" :offset="19">
                    <div class="pageNumBox">
                        <span>第</span>
                        <span class="placeholder-min text-center">&nbsp;{{ form.page }}&nbsp;</span>
                        <span>页，共</span>
                        <span class="placeholder-min text-center">&nbsp;{{ form.totalPage }}&nbsp;</span>
                        <span>页</span>
                    </div>
                </el-col>
            </el-row>
            <div class="topTwoBox">
                <div class="centerName">{{ form.baobmc }}</div>
                <div class="codeText">{{ form.baobbh }}</div>
            </div>
            <div class="threeTopBox">
                <div class="left-border">
                    <div class="box-title">检测单位名称：</div>
                    <div class>
                        {{
                        form.jiancdwmc
                        }}
                    </div>
                </div>
                <div class="right-border">
                    <span>记录编号：</span>
                    <span class="placeholder">{{ form.jilbh }}</span>
                </div>
            </div>
            <!-- 表格主要内容区 -->
            <div class="table-border">
                <!-- 表头 -->
                <table height="160px" class="top-table">
                    <tbody>
                    <tr>
                        <td height="30" align="center" width="15%">
                            <span style="width: 90px; display: inline-block">工程名称</span>
                        </td>
                        <td width="35%" class="text-center">
                            <span>{{ form.gongcmc }}</span>
                        </td>
                        <td align="center" width="15%">
                            <span style="width: 90px; display: inline-block">工程部位/用途</span>
                        </td>
                        <td width="35%" class="text-center">
                            <span>{{ form.gongcbwyt }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="center">样品信息</td>
                        <td class="specimen-border" colspan="3">
                            <span>样品名称：</span>
                            <span :class="{ placeholder: !form.yangpmc }">{{ form.yangpmc }}</span>
                            <span>；样品编号：</span>
                            <span :class="{ 'placeholder-long': !form.yangpbh }">{{ form.yangpbh }}</span>
                            <span>；样品数量：</span>
                            <span :class="{ placeholder: !form.yangpsl }">{{ form.yangpsl }}</span>
                            <span>；样品状态：</span>
                            <span :class="{ placeholder: !form.yangpzt }">{{ form.yangpzt }}</span>
                        </td>
                    </tr>

                    <tr>
                        <td height="25" align="center" width="15%">
                            <span style="width: 90px; display: inline-block">试验检测日期</span>
                        </td>
                         <!-- <td width="35%" class="text-center">{{ form.shiyjcrq }}</td> -->                                            
 <td width="35%" class="text-center">
      <el-input v-model="form.shiyjcrq" />
</td>
                        <td align="center" width="15%">
                            <span style="width: 90px; display: inline-block">试验条件</span>
                        </td>
                        <td v-if="isPdf" width="35%">
                            温度：
                            <span style="display: inline-block; width: 10%">{{ form.shiytjwd }}</span>
                            ℃；湿度：
                            <span style="display: inline-block; width: 10%">{{ form.shiytjsd }}</span
                            >%RH
                        </td>
                        <td v-else width="35%">
                            温度：
                            <el-input :type="isPdf ? 'string' : 'number'" v-model="form.shiytjwd" style="width: 15%"/>
                            ℃；湿度：
                            <el-input :type="isPdf ? 'string' : 'number'" v-model="form.shiytjsd" style="width: 15%"/>
                            %RH
                        </td>
                    </tr>

                    <tr>
                        <td height="40" align="center" width="15%">
                            <span style="width: 90px; display: inline-block">检测依据</span>
                        </td>
                        <td width="35%">
                            <span v-if="isPdf">{{ form.jiancyj }}</span>
                            <el-input v-else type="textarea" v-model="form.jiancyj" :rows="2" class="mark"
                                      @dblclick.native="showBsJiancyjView" readonly/>
                        </td>
                        <td align="center" width="15%">
                            <span style="width: 90px; display: inline-block">判定依据</span>
                        </td>
                        <td width="35%">
                            <span v-if="isPdf">{{ form.pandyj }}</span>
                            <el-input v-else type="textarea" v-model="form.pandyj" :rows="2"
                                      @dblclick.native="showBsJudgeBaseView" @focus="handleFocus('pandyj')"
                                      class="mark" readonly/>
                        </td>
                    </tr>
                    <tr class="bottom-border">
                        <td height="30" align="center">
                            <div>主要仪器设备</div>
                            <div>名称及编号</div>
                        </td>
                        <td colspan="3">
                            <span v-if="isPdf">{{ form.zhuyyqsbmcjbh }}</span>
                            <el-input v-else type="textarea" :rows="2" v-model="form.zhuyyqsbmcjbh"
                                      class="height100 width100 mark" @dblclick.native="showBsInstrumentView"
                                      readonly></el-input>
                        </td>
                    </tr>
                    </tbody>
                </table>
                <!-- 表中-->
                <table class="middle-table" style="height: 50px">
                    <tbody>
                    <tr>
                        <td class="text-center" style="width: 15%;" height="25">
                            <span style="width:90px;display:inline-block">对比水泥</span>
                        </td>
                        <td class="text-center" style="width: 35%;">
                            <el-input v-model="form.dbsn"
                                      @keydown.native="handleKeyDown($event, 0, 0)"
                                      :ref="'0_0'"
                                      :readonly="isPdf"
                            />
                        </td>
                        <td class="text-center" style="width: 15%;">
                            <span style="width:90px;display:inline-block">标准砂</span>
                        </td>
                        <td class="text-center" style="width: 35%;">
                            <el-input v-model="form.biaozs"
                                      @keydown.native="handleKeyDown($event, 0, 1)"
                                      :ref="'0_1'"
                                      :readonly="isPdf"
                            />
                        </td>
                    </tr>
                    <tr>
                        <td class="text-center" style="width: 15%;" height="25">
                            <span style="width:90px;display:inline-block">水</span>
                        </td>
                        <td class="text-center" style="width: 35%;">
                            <el-input v-model="form.shui"
                                      @keydown.native="handleKeyDown($event, 1, 0)"
                                      :ref="'1_0'"
                                      :readonly="isPdf"
                            />
                        </td>
                        <td class="text-center" style="width: 15%;">
                            <span style="width:90px;display:inline-block">养护条件</span>
                        </td>
                        <td class="text-center" style="width: 35%;">
                            <el-input v-model="form.yanghtj"
                                      @keydown.native="handleKeyDown($event, 1, 1)"
                                      :ref="'1_1'"
                                      :readonly="isPdf"
                            />
                        </td>
                    </tr>
                    </tbody>
                </table>
                <!-- 主要数据-->
                <table class="middle-table" style="height: 300px;">
                    <tbody>
                    <tr>
                        <td class="text-center" style="width: 8%;" height="40">
                            <span style="width:50px;display:inline-block">试件类型</span>
                        </td>
                        <td class="text-center" style="width: 7%;">
                            <span style="width:50px;display:inline-block">对比水泥(g)</span>
                        </td>

                        <td class="text-center" style="width: 7%;">
                            <span style="width:40px;display:inline-block">标准砂(g)</span>
                        </td>
                        <td class="text-center" style="width: 6%;">
                            <span style="width:40px;display:inline-block">掺合料(g)</span>
                        </td>
                        <td class="text-center" style="width: 6%;">
                            <span style="width:24px;display:inline-block">水 (ml)</span>
                        </td>
                        <td class="text-center" style="width: 7%;">
                            <span style="display:inline-block">成型时间</span>
                        </td>
                        <td class="text-center" style="width: 6%;">
                            <span style="width:40px;display:inline-block">龄期(d)</span>
                        </td>

                        <td class="text-center" style="width: 7%;">
                            <span style="display:inline-block">压件时间</span>
                        </td>
                        <td class="text-center" style="width: 7%;">
                            <span style="display:inline-block">受压面积(m²)</span>
                        </td>
                        <td class="text-center" style="width: 12%;" colspan="2">
                            <span style="display:inline-block">破坏荷载F(N)</span>
                        </td>
                        <td class="text-center" style="width: 12%;" colspan="2">
                            <span style="width:110px;display:inline-block">抗压强度测值(MPa)</span>
                        </td>
                        <td class="text-center" style="width: 8%;">
                            <span style="display:inline-block">抗压强度平均值(MPa)</span>
                        </td>
                        <td class="text-center" style="width: 7%;">
                            <span style="width:60px;display:inline-block">活性指数(%)</span>
                        </td>
                    </tr>

                    <!-- 对比胶砂1 -->
                    <tr>
                        <td height="75" rowspan="3">
                            <span>对比胶砂1</span>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.a1"
                                    @keydown.native="handleKeyDown($event, 2, 0)"
                                    @paste.native="handlePasteOne($event,  0, 0)"
                                    :ref="`2_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.b1"
                                    @keydown.native="handleKeyDown($event, 2, 1)"
                                    @paste.native="handlePasteOne($event,  0, 1)"
                                    :ref="`2_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.c1"
                                    @keydown.native="handleKeyDown($event, 2, 2)"
                                    @paste.native="handlePasteOne($event,  0, 2)"
                                    :ref="`2_2`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.d1"
                                    @keydown.native="handleKeyDown($event, 2, 3)"
                                    @paste.native="handlePasteOne($event,  0, 3)"
                                    :ref="`2_3`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateE1"
                                            type="datetime"
                                            v-model="form.e1"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateE1.focus()">{{ form.e1 }}
                            </div>
                        </td>
                        <td rowspan="6">
                            <el-input
                                    v-model="form.f1"
                                    @change="backBgHxzs()"
                                    @keydown.native="handleKeyDown($event, 2, 4)"
                                    :ref="`2_4`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateG1"
                                            type="datetime"
                                            v-model="form.g1"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateG1.focus()">{{ form.g1 }}
                            </div>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.h1"
                                    @change="computeGroupKyqdcz(1)"
                                    @keydown.native="handleKeyDown($event, 2, 5)"
                                    @paste.native="handlePasteOne($event,  0, 4)"
                                    :ref="`2_5`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    v-model="form.i1a"
                                    @change="computeOneKyqdcz(1,'i','1a')"
                                    @keydown.native="handleKeyDown($event, 2, 6)"
                                    @paste.native="handlePasteTwo($event,  0, 0)"
                                    :ref="`2_6`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    v-model="form.i1b"
                                    @change="computeOneKyqdcz(1,'i','1b')"
                                    @keydown.native="handleKeyDown($event, 2, 7)"
                                    @paste.native="handlePasteTwo($event,  0, 1)"
                                    :ref="`2_7`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k1a }}</span>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k1b }}</span>
                        </td>
                        <td rowspan="3">
                            <span>{{ form.m1 }}</span>
                        </td>
                        <td rowspan="6">
                            <span>{{ form.n1 }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    v-model="form.i1c"
                                    @change="computeOneKyqdcz(1,'i','1c')"
                                    @keydown.native="handleKeyDown($event, 3, 0)"
                                    @paste.native="handlePasteTwo($event,  1, 0)"
                                    :ref="`3_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    v-model="form.j1a"
                                    @change="computeOneKyqdcz(1,'j','1a')"
                                    @keydown.native="handleKeyDown($event, 3, 1)"
                                    @paste.native="handlePasteTwo($event,  1, 1)"
                                    :ref="`3_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k1c }}</span>
                        </td>
                        <td>
                            <span>{{ form.l1a }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    v-model="form.j1b"
                                    @change="computeOneKyqdcz(1,'j','1b')"
                                    @keydown.native="handleKeyDown($event, 4, 0)"
                                    @paste.native="handlePasteTwo($event,  2, 0)"
                                    :ref="`4_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    v-model="form.j1c"
                                    @change="computeOneKyqdcz(1,'j','1c')"
                                    @keydown.native="handleKeyDown($event, 4, 1)"
                                    @paste.native="handlePasteTwo($event,  2, 1)"
                                    :ref="`4_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.l1b }}</span>
                        </td>
                        <td>
                            <span>{{ form.l1c }}</span>
                        </td>
                    </tr>

                    <!-- 试验胶砂1 -->
                    <tr>
                        <td height="75" rowspan="3">
                            <span>试验胶砂1</span>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.a2"
                                    @keydown.native="handleKeyDown($event, 5, 0)"
                                    @paste.native="handlePasteOne($event,  1, 0)"
                                    :ref="`5_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.b2"
                                    @keydown.native="handleKeyDown($event, 5, 1)"
                                    @paste.native="handlePasteOne($event,  1, 1)"
                                    :ref="`5_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.c2"
                                    @keydown.native="handleKeyDown($event, 5, 2)"
                                    @paste.native="handlePasteOne($event,  1, 2)"
                                    :ref="`5_2`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.d2"
                                    @keydown.native="handleKeyDown($event, 5, 3)"
                                    @paste.native="handlePasteOne($event,  1, 3)"
                                    :ref="`5_3`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateE2"
                                            type="datetime"
                                            v-model="form.e2"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateE2.focus()">{{ form.e2 }}
                            </div>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateG2"
                                            type="datetime"
                                            v-model="form.g2"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateG2.focus()">{{ form.g2 }}
                            </div>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.h2"
                                    @change="computeGroupKyqdcz(2)"
                                    @keydown.native="handleKeyDown($event, 5, 4)"
                                    @paste.native="handlePasteOne($event,  1, 4)"
                                    :ref="`5_4`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    v-model="form.i2a"
                                    @change="computeOneKyqdcz(2,'i','2a')"
                                    @keydown.native="handleKeyDown($event, 5, 5)"
                                    @paste.native="handlePasteTwo($event,  3, 0)"
                                    :ref="`5_5`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    v-model="form.i2b"
                                    @change="computeOneKyqdcz(2,'i','2b')"
                                    @keydown.native="handleKeyDown($event, 5, 6)"
                                    @paste.native="handlePasteTwo($event,  3, 1)"
                                    :ref="`5_6`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k2a }}</span>
                        </td>
                        <td>
                            <span>{{ form.k2b }}</span>
                        </td>
                        <td rowspan="3">
                            <span>{{ form.m2 }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    v-model="form.i2c"
                                    @change="computeOneKyqdcz(2,'i','2c')"
                                    @keydown.native="handleKeyDown($event, 6, 0)"
                                    @paste.native="handlePasteTwo($event,  4, 0)"
                                    :ref="`6_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    v-model="form.j2a"
                                    @change="computeOneKyqdcz(2,'j','2a')"
                                    @keydown.native="handleKeyDown($event, 6, 1)"
                                    @paste.native="handlePasteTwo($event,  4, 1)"
                                    :ref="`6_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k2c }}</span>
                        </td>
                        <td>
                            <span>{{ form.l2a }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    v-model="form.j2b"
                                    @change="computeOneKyqdcz(2,'j','2b')"
                                    @keydown.native="handleKeyDown($event, 7, 0)"
                                    @paste.native="handlePasteTwo($event,  5, 0)"
                                    :ref="`7_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    v-model="form.j2c"
                                    @change="computeOneKyqdcz(2,'j','2c')"
                                    @keydown.native="handleKeyDown($event, 7, 1)"
                                    @paste.native="handlePasteTwo($event,  5, 1)"
                                    :ref="`7_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.l2b }}</span>
                        </td>
                        <td>
                            <span>{{ form.l2c }}</span>
                        </td>
                    </tr>

                    <!-- 对比胶砂2 -->
                    <tr>
                        <td height="75" rowspan="3">
                            <span>对比胶砂2</span>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    v-model="form.a3"
                                    @keydown.native="handleKeyDown($event, 8, 0)"
                                    @paste.native="handlePasteOne($event,  2, 0)"
                                    :ref="`8_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.b3"
                                    @keydown.native="handleKeyDown($event, 8, 1)"
                                    @paste.native="handlePasteOne($event,  2, 1)"
                                    :ref="`8_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.c3"
                                    @keydown.native="handleKeyDown($event, 8, 2)"
                                    @paste.native="handlePasteOne($event,  2, 2)"
                                    :ref="`8_2`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.d3"
                                    @keydown.native="handleKeyDown($event, 8, 3)"
                                    @paste.native="handlePasteOne($event,  2, 3)"
                                    :ref="`8_3`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateE3"
                                            type="datetime"
                                            v-model="form.e3"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateE3.focus()">{{ form.e3 }}
                            </div>
                        </td>
                        <td rowspan="6">
                            <el-input
                                    type="number"
                                    v-model="form.f3"
                                    @change="backBgHxzs()"
                                    @keydown.native="handleKeyDown($event, 8, 4)"
                                    :ref="`8_4`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateG3"
                                            type="datetime"
                                            v-model="form.g3"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateG3.focus()">{{ form.g3 }}
                            </div>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.h3"
                                    @change="computeGroupKyqdcz(3)"
                                    @keydown.native="handleKeyDown($event, 8, 5)"
                                    @paste.native="handlePasteOne($event,  2, 4)"
                                    :ref="`8_5`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    type="number"
                                    v-model="form.i3a"
                                    @change="computeOneKyqdcz(3,'i','3a')"
                                    @keydown.native="handleKeyDown($event, 8, 6)"
                                    @paste.native="handlePasteTwo($event,  6, 0)"
                                    :ref="`8_6`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    type="number"
                                    v-model="form.i3b"
                                    @change="computeOneKyqdcz(3,'i','3b')"
                                    @keydown.native="handleKeyDown($event, 8, 7)"
                                    @paste.native="handlePasteTwo($event,  6, 1)"
                                    :ref="`8_7`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k3a }}</span>
                        </td>
                        <td>
                            <span>{{ form.k3b }}</span>
                        </td>
                        <td rowspan="3">
                            <span>{{ form.m3 }}</span>
                        </td>
                        <td rowspan="6">
                            <span>{{ form.n3 }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    type="number"
                                    v-model="form.i3c"
                                    @change="computeOneKyqdcz(3,'i','3c')"
                                    @keydown.native="handleKeyDown($event, 9, 0)"
                                    @paste.native="handlePasteTwo($event,  7, 0)"
                                    :ref="`9_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    type="number"
                                    v-model="form.j3a"
                                    @change="computeOneKyqdcz(3,'j','3a')"
                                    @keydown.native="handleKeyDown($event, 9, 1)"
                                    @paste.native="handlePasteTwo($event,  7, 1)"
                                    :ref="`9_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k3c }}</span>
                        </td>
                        <td>
                            <span>{{ form.l3a }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    type="number"
                                    v-model="form.j3b"
                                    @change="computeOneKyqdcz(3,'j','3b')"
                                    @keydown.native="handleKeyDown($event, 10, 0)"
                                    @paste.native="handlePasteOne($event,  8, 0)"
                                    :ref="`10_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    type="number"
                                    v-model="form.j3c"
                                    @change="computeOneKyqdcz(3,'j','3c')"
                                    @keydown.native="handleKeyDown($event, 10, 1)"
                                    @paste.native="handlePasteTwo($event,  8, 1)"
                                    :ref="`10_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.l3b }}</span>
                        </td>
                        <td>
                            <span>{{ form.l3c }}</span>
                        </td>
                    </tr>

                    <!-- 试验胶砂2 -->
                    <tr>
                        <td height="75" rowspan="3">
                            <span>试验胶砂2</span>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.a4"
                                    @keydown.native="handleKeyDown($event, 11, 0)"
                                    @paste.native="handlePasteOne($event,  3, 0)"
                                    :ref="`11_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.b4"
                                    @keydown.native="handleKeyDown($event, 11, 1)"
                                    @paste.native="handlePasteOne($event,  3, 1)"
                                    :ref="`11_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.c4"
                                    @keydown.native="handleKeyDown($event, 11, 2)"
                                    @paste.native="handlePasteOne($event,  3, 2)"
                                    :ref="`11_2`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.d4"
                                    @keydown.native="handleKeyDown($event, 11, 3)"
                                    @paste.native="handlePasteOne($event,  3, 3)"
                                    :ref="`11_3`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateE4"
                                            type="datetime"
                                            v-model="form.e4"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateE4.focus()">{{ form.e4 }}
                            </div>
                        </td>
                        <td rowspan="3" class="line-feed-date">
                            <el-date-picker class="hide-icon"
                                            ref="dateG4"
                                            type="datetime"
                                            v-model="form.g4"
                                            value-format="yyyy/MM/dd HH:mm"
                                            format="yyyy/MM/dd HH:mm"
                                            style="width: 100%;"
                                            :readonly="isPdf"/>
                            <div class="date-view"
                                 @click="$refs.dateG4.focus()">{{ form.g4 }}
                            </div>
                        </td>
                        <td rowspan="3">
                            <el-input
                                    type="number"
                                    v-model="form.h4"
                                    @change="computeGroupKyqdcz(4)"
                                    @keydown.native="handleKeyDown($event, 11, 4)"
                                    @paste.native="handlePasteOne($event,  3, 4)"
                                    :ref="`11_4`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    type="number"
                                    v-model="form.i4a"
                                    @change="computeOneKyqdcz(4,'i','4a')"
                                    @keydown.native="handleKeyDown($event, 11, 5)"
                                    @paste.native="handlePasteTwo($event,  9, 0)"
                                    :ref="`11_5`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    type="number"
                                    v-model="form.i4b"
                                    @change="computeOneKyqdcz(4,'i','4b')"
                                    @keydown.native="handleKeyDown($event, 11, 6)"
                                    @paste.native="handlePasteTwo($event,  9, 1)"
                                    :ref="`11_6`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k4a }}</span>
                        </td>
                        <td>
                            <span>{{ form.k4b }}</span>
                        </td>
                        <td rowspan="3">
                            <span>{{ form.m4 }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    type="number"
                                    v-model="form.i4c"
                                    @change="computeOneKyqdcz(4,'i','4c')"
                                    @keydown.native="handleKeyDown($event, 12, 0)"
                                    @paste.native="handlePasteTwo($event,  10, 0)"
                                    :ref="`12_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    type="number"
                                    v-model="form.j4a"
                                    @change="computeOneKyqdcz(4,'j','4a')"
                                    @keydown.native="handleKeyDown($event, 12, 1)"
                                    @paste.native="handlePasteTwo($event,  10, 1)"
                                    :ref="`12_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.k4c }}</span>
                        </td>
                        <td>
                            <span>{{ form.l4a }}</span>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 6%;" height="25">
                            <el-input
                                    type="number"
                                    v-model="form.j4b"
                                    @change="computeOneKyqdcz(4,'j','4b')"
                                    @keydown.native="handleKeyDown($event, 13, 0)"
                                    @paste.native="handlePasteTwo($event,  11, 0)"
                                    :ref="`13_0`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td>
                            <el-input
                                    type="number"
                                    v-model="form.j4c"
                                    @change="computeOneKyqdcz(4,'j','4c')"
                                    @keydown.native="handleKeyDown($event, 13, 1)"
                                    @paste.native="handlePasteTwo($event,  11, 1)"
                                    :ref="`13_1`"
                                    :readonly="isPdf"
                            ></el-input>
                        </td>
                        <td style="width: 6%;">
                            <span>{{ form.l4b }}</span>
                        </td>
                        <td>
                            <span>{{ form.l4c }}</span>
                        </td>
                    </tr>

                    </tbody>
                </table>
                <!-- 附加声明 -->
                <table height="30px" class="bottom-table">
                    <tr>
                        <td>
                            <el-input type="textarea" :rows="2" v-model="form.fujsm" :readonly="isPdf"/>
                        </td>
                    </tr>
                </table>
            </div>
            <!-- 表格底部签名区域 -->
            <table height="22px" class="transparent">
                <tbody>
                <tr>
                    <td width="10%" align="right">检测：</td>
                    <td width="15%" align="left"></td>
                    <td width="10%" align="right">记录：</td>
                    <td width="15%" align="left"></td>
                    <td width="10%" align="right">复核：</td>
                    <td align="left" width="15%"></td>
                    <td width="10%">日期：</td>
                    <td align="left" width="15%">
                        <div style="display: inline-block; margin-left: 20px">年</div>
                        <div style="display: inline-block; margin-left: 20px">月</div>
                        <div style="display: inline-block ;margin-left: 20px">日</div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <bs-instrument-view ref="bsInstrumentViewRef" @select="selectInstrument"></bs-instrument-view>
        <bs-jiancyj-view ref="bsJiancyjViewRef" @select="selectJiancyj" :syType="syType"></bs-jiancyj-view>
        <bs-judge-base-view ref="bsJudgeBaseViewRef" @select="selectJudge" :syType="syType"></bs-judge-base-view>
    </div>
</template>

<script>
import BsJiancyjView from "@/views/sycs/bsJiancyj/BsJiancyjView.vue";
import BsInstrumentView from "@/views/dept/bsInstrument/BsInstrumentView.vue";
import BsJudgeBaseView from "@/views/sycs/bsJudgeBase/BsJudgeBaseView.vue";

import Bus from "@/utils/bus";
import {getCjlkzhhljlbBsInfo} from "@/api/report_jl/cjl";
import {handleFocus, handleKeyDown, handlePaste} from "@/views/reportForms/utils";
import decimal from "@/utils/big-decimal";
import {addYsDzkyqdsyBsInfo, getYsDzkyqdsyBsInfo, updateYsDzkyqdsyBsInfo} from "@/api/reportys/ysYsdzkyqdsyjcjlbBsInfo";
import {addLjlmPzdsmzcBsInfo, getLjlmPzdsmzcBsInfo, updateLjlmPzdsmzcBsInfo} from "@/api/report_ljlm/pzdsmzc";
import {addChlHxzsBsInfo, getChlHxzsBsInfo, updateChlHxzsBsInfo} from "@/api/report_chl/hxzs";

export default {
    name: "hxzs",
    components: {BsJudgeBaseView, BsInstrumentView, BsJiancyjView},
    props: {
        excelId: {
            type: [String, Number],
            default: () => ""
        },
        syType: {
            type: [String, Number],
            default: () => ""
        },
        page: {
            type: Number,
            default: () => 0
        },
        isPdf: {
            type: Boolean,
            default: () => false
        },
        printEmpty: {
            type: Boolean,
            default: () => false
        }
    },
    data() {
        return {
            show: false,
            form: {
                excelId: undefined,
                totalPage: undefined,
                page: undefined,
                jilbh: undefined,
                jiancdwmc: undefined,
                gongcmc: undefined,
                gongcbwyt: undefined,
                yangpmc: undefined,
                yangpbh: undefined,
                yangpsl: undefined,
                yangpzt: undefined,
                yangpsj: undefined,
                shiyjcrq: undefined,
                shiytjwd: undefined,
                shiytjsd: undefined,
                jiancyj: undefined,
                pandyj: undefined,
                jiancyjIds: [],
                pandyjIds: [],
                zhuyyqsbmcjbh: undefined,
                shebIds: [],
                fujsm: undefined,

                dbsn: undefined,
                biaozs: undefined,
                shui: undefined,
                yanghtj: undefined,

                // 1
                a1: undefined,
                b1: undefined,
                c1: undefined,
                d1: undefined,
                e1: undefined,
                f1: undefined,
                g1: undefined,
                h1: undefined,

                i1a: undefined,
                i1b: undefined,
                i1c: undefined,
                j1a: undefined,
                j1b: undefined,
                j1c: undefined,

                k1a: undefined,
                k1b: undefined,
                k1c: undefined,
                l1a: undefined,
                l1b: undefined,
                l1c: undefined,

                m1: undefined,
                n1: undefined,

                // 2
                a2: undefined,
                b2: undefined,
                c2: undefined,
                d2: undefined,
                e2: undefined,
                g2: undefined,
                h2: undefined,

                i2a: undefined,
                i2b: undefined,
                i2c: undefined,
                j2a: undefined,
                j2b: undefined,
                j2c: undefined,

                k2a: undefined,
                k2b: undefined,
                k2c: undefined,
                l2a: undefined,
                l2b: undefined,
                l2c: undefined,

                m2: undefined,

                // 3
                a3: undefined,
                b3: undefined,
                c3: undefined,
                d3: undefined,
                e3: undefined,
                f3: undefined,
                g3: undefined,
                h3: undefined,

                i3a: undefined,
                i3b: undefined,
                i3c: undefined,
                j3a: undefined,
                j3b: undefined,
                j3c: undefined,

                k3a: undefined,
                k3b: undefined,
                k3c: undefined,
                l3a: undefined,
                l3b: undefined,
                l3c: undefined,

                m3: undefined,
                n3: undefined,

                // 4
                a4: undefined,
                b4: undefined,
                c4: undefined,
                d4: undefined,
                e4: undefined,
                g4: undefined,
                h4: undefined,

                i4a: undefined,
                i4b: undefined,
                i4c: undefined,
                j4a: undefined,
                j4b: undefined,
                j4c: undefined,

                k4a: undefined,
                k4b: undefined,
                k4c: undefined,
                l4a: undefined,
                l4b: undefined,
                l4c: undefined,

                m4: undefined,
            },
        };
    },

    created() {
        this.init();
    },
    methods: {
        init() {
            this.show = false;
            getChlHxzsBsInfo(this.excelId || this.$defaultExcelId).then((response) => {
                this.form = response.data;
                if (!this.form.fujsm) {
                    this.form.fujsm = "附加声明：";
                }
                this.setInitialValue();
                this.show = true;
            });
        },
        // 设置初始值
        setInitialValue() {
            if (this.form) {
                this.form.baobmc = this.form.baobmc || "粉煤灰活性指数试验检测记录表";
                this.form.baobbh = this.form.baobbh || "JGLQ08014";
            }

        },

        // 显示仪器列表
        showBsInstrumentView() {
            this.$refs.bsInstrumentViewRef.init(this.form.shebIds);
        },
        // 仪器选择
        selectInstrument(info) {
            this.form.zhuyyqsbmcjbh = info.label;
            this.form.shebIds = info.ids;
            Bus.$emit("setLjlmPzdBgZhuyyqsbmcjbh", {
                zhuyyqsbmcjbh: this.form.zhuyyqsbmcjbh,
                shebIds: this.form.shebIds
            });
        },
        // 显示检测依据列表
        showBsJiancyjView() {
            this.$refs.bsJiancyjViewRef.init(this.form.jiancyjIds);
        },
        // 检测依据选择
        selectJiancyj(info) {
            this.form.jiancyj = info.label;
            this.form.jiancyjIds = info.ids;
            Bus.$emit("setLjlmPzdBgJiancyj", {jiancyj: this.form.jiancyj, jiancyjIds: this.form.jiancyjIds});
        },
        // 显示判定依据列表
        showBsJudgeBaseView() {
            this.$refs.bsJudgeBaseViewRef.init(this.form.pandyjIds);
        },
        // 判断依据选择
        selectJudge(info) {
            if (!this.form.pandyj) {
                this.form.pandyj = info.label;
                return;
            }
            if (info && info.label) {
                this.form.pandyj += "、" + info.label;
            }
        },
        handleFocus(event) {
            handleFocus(event, this.page, this.form[event]);
        },

        // 计算单个抗压强度测值
        computeOneKyqdcz(index, type, key) {
            if (this.form['h' + index] && Number(this.form['h' + index])) {
                if (type == 'i') {
                    if (this.form[type + key] && Number(this.form[type + key])) {
                        this.form['k' + key] = decimal.divide(this.form[type + key], this.form['h' + index])
                    } else {
                        this.form['k' + key] = undefined
                    }
                } else if (type == 'j') {
                    if (this.form[type + key] && Number(this.form[type + key])) {
                        this.form['l' + key] = decimal.divide(this.form[type + key], this.form['h' + index])
                    } else {
                        this.form['l' + key] = undefined
                    }
                }

                // 计算抗压强度平均值
                this.computeKyqdpjz(index)
            }
        },
        // 计算一组抗压强度测值
        computeGroupKyqdcz(index) {
            let typeArr = ['i', 'j']
            let keyArr = [index + 'a', index + 'b', index + 'c']
            typeArr.forEach(type => {
                keyArr.forEach(key => {
                    this.computeOneKyqdcz(index, type, key)
                })
            })
        },

        // 计算抗压强度平均值
        computeKyqdpjz(index) {
            let yq1Arr = ['k1a', 'k1b', 'k1c', 'l1a', 'l1b', 'l1c']
            let yq2Arr = ['k2a', 'k2b', 'k2c', 'l2a', 'l2b', 'l2c']
            let yq3Arr = ['k3a', 'k3b', 'k3c', 'l3a', 'l3b', 'l3c']
            let yq4Arr = ['k4a', 'k4b', 'k4c', 'l4a', 'l4b', 'l4c']
            switch (Number(index)) {
                case 1:
                    // 计算抗压强度平均值循环公式
                    this.computeXHKyqdpjz(index, yq1Arr)
                    break
                case 2:
                    // 计算抗压强度平均值循环公式
                    this.computeXHKyqdpjz(index, yq2Arr)
                    break
                case 3:
                    // 计算抗压强度平均值循环公式
                    this.computeXHKyqdpjz(index, yq3Arr)
                    break
                case 4:
                    // 计算抗压强度平均值循环公式
                    this.computeXHKyqdpjz(index, yq4Arr)
                    break
                default:
                    break;
            }
        },

        // 计算抗压强度平均值循环公式
        computeXHKyqdpjz(index, arr) {
            let count = 0
            let sum = 0
            if (arr && arr.length > 0) {
                arr.forEach(item => {
                    if (this.form[item] && Number(this.form[item])) {
                        count++;
                        sum = decimal.add(sum, this.form[item])
                    }
                })
                this.form['m' + index] = count ? decimal.divide(sum, count) : undefined
            } else {
                this.form['m' + index] = undefined;
            }

            // 计算活性指数
            this.computeHxZs(index)
        },

        // 计算活性指数
        computeHxZs(index) {
            if (index == 1 || index == 2) {
                if (this.form.m2 && this.form.m1 && Number(this.form.m1)) {
                    this.form.n1 = decimal.divide(decimal.multiply(this.form.m2, 100), this.form.m1)
                } else {
                    this.form.n1 = undefined
                }
            } else {
                if (this.form.m4 && this.form.m3 && Number(this.form.m3)) {
                    this.form.n3 = decimal.divide(decimal.multiply(this.form.m4, 100), this.form.m3)
                } else {
                    this.form.n3 = undefined
                }
            }
            // 返回活性指数
            this.backBgHxzs()
        },

        // 返回活性指数
        backBgHxzs() {
            Bus.$emit("setFmhsyjcBgBase", {
                hxzsDay1: this.form.f1 || null,
                hxzs1: this.form.n1 || null,
                hxzsDay2: this.form.f3 || null,
                hxzs2: this.form.n3 || null,
            });
        },

        // 返回报告引入值
        backBgzFun() {
            // Bus.$emit("setLjlmPzdBgBase", {
            //     shiytjwd: this.form.shiytjwd,
            //     jiancld: this.form.jiancld,
            //     jiegcc: this.form.jiegcc,
            // });
        },

        // 提交表单
        submitForm() {
            return this.form;
        },

        // 鼠标移动操作
        handleKeyDown(event, rowIndex, colIndex) {
            const maxArr = [1, 1, 7, 1, 1, 6, 1, 1, 7, 1, 1, 6, 1, 1]; // 每一行最多有多少可聚焦输入框（从0开始）
            const ref = handleKeyDown(event, rowIndex, colIndex, maxArr);
            if (this.$refs[ref]?.length) {
                this.$refs[ref][0].focus();
            } else if (this.$refs[ref]) {
                this.$refs[ref].focus();
            }
        },

        // 粘贴赋值方法
        handlePasteOne(event, rowIndex, colIndex) {
            const nameAllArr = [
                ["a1", "b1", "c1", "d1", "h1"],
                ["a2", "b2", "c2", "d2", "h2"],
                ["a3", "b3", "c3", "d3", "h3"],
                ["a4", "b4", "c4", "d4", "h4"],
            ];
            const subscriptArr = [
                [0, 1, 2, 3, 4],
                [0, 1, 2, 3, 4],
                [0, 1, 2, 3, 4],
                [0, 1, 2, 3, 4],
            ];

            const methodsAllArr = [
                [null, null, null, null, 'computeGroupKyqdcz'],
                [null, null, null, null, 'computeGroupKyqdcz'],
                [null, null, null, null, 'computeGroupKyqdcz'],
                [null, null, null, null, 'computeGroupKyqdcz'],
            ];
            const parameterArr = [
                [null, null, null, null, 1],
                [null, null, null, null, 2],
                [null, null, null, null, 3],
                [null, null, null, null, 4],
            ];
            const data = handlePaste(event, rowIndex, colIndex, nameAllArr, methodsAllArr, parameterArr, subscriptArr);
            const {cols, nameSetArr, methodsSetArr, parameterSetArr, subscriptSetArr} = data;
            for (let a = 0; a < nameSetArr.length; a++) {
                for (let b = 0; b < nameSetArr[a].length; b++) {
                    this.form[nameSetArr[a][b]] = cols[a][b];
                }
            }
            for (let a = 0; a < methodsSetArr.length; a++) {
                for (let b = 0; b < methodsSetArr[a].length; b++) {
                    if (methodsSetArr[a][b]) {
                        this.setCalculate(methodsSetArr[a][b], parameterSetArr[a][b]);
                    }
                }
            }
        },

        // 粘贴赋值方法
        handlePasteTwo(event, rowIndex, colIndex) {
            const nameAllArr = [
                ["i1a", "i1b"],
                ["i1c", "j1a"],
                ["j1b", "j1c"],
                ["i2a", "i2b"],
                ["i2c", "j2a"],
                ["j2b", "j2c"],
                ["i3a", "i3b"],
                ["i3c", "j3a"],
                ["j3b", "j3c"],
                ["i4a", "i4b"],
                ["i4c", "j4a"],
                ["j4b", "j4c"],
            ];
            const subscriptArr = [
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
                [0, 1],
            ];

            const methodsAllArr = [
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
                ['computeOneKyqdcz', 'computeOneKyqdcz'],
            ];
            const parameterArr = [
                ['1-i-1a', '1-i-1b'],
                ['1-i-1c', '1-j-1a'],
                ['1-j-1b', '1-j-1c'],
                ['2-i-2a', '2-i-2b'],
                ['2-i-2c', '2-j-2a'],
                ['2-j-2b', '2-j-2c'],
                ['3-i-3a', '3-i-3b'],
                ['3-i-3c', '3-j-3a'],
                ['3-j-3b', '3-j-3c'],
                ['4-i-4a', '4-i-4b'],
                ['4-i-4c', '4-j-4a'],
                ['4-j-4b', '4-j-4c'],
            ];
            const data = handlePaste(event, rowIndex, colIndex, nameAllArr, methodsAllArr, parameterArr, subscriptArr);
            const {cols, nameSetArr, methodsSetArr, parameterSetArr, subscriptSetArr} = data;
            for (let a = 0; a < nameSetArr.length; a++) {
                for (let b = 0; b < nameSetArr[a].length; b++) {
                    this.form[nameSetArr[a][b]] = cols[a][b];
                }
            }
            for (let a = 0; a < methodsSetArr.length; a++) {
                for (let b = 0; b < methodsSetArr[a].length; b++) {
                    let methods = methodsSetArr[a][b];
                    if (methods) {
                        let parameter = parameterSetArr[a][b];
                        let parameterArr = parameter ? parameter.split("-") : []
                        if (parameterArr.length >= 3) {
                            this.setCalculate(methods, parameterArr[0], parameterArr[1], parameterArr[2]);
                        }
                    }
                }
            }
        },

        // 计算方法调用
        setCalculate(name, a, b, c, d, e) {
            this[name](a, b, c, d, e);
        }
    }
}
</script>

<style scoped lang="scss">
.td-input {
  width: 100% !important;
  height: 30px !important;
}

// 用于选择时间超出input无法换行的解决方案
.line-feed-date {
  position: relative;

  .date-view {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 99;
    top: 0;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
  }
}
</style>
